declare -A source_array
source_array[${#source_array[@]}]="deb http://old-releases.ubuntu.com/ubuntu/ impish main restricted universe multiverse"
source_array[${#source_array[@]}]="deb http://old-releases.ubuntu.com/ubuntu/ impish-updates main restricted universe multiverse"
source_array[${#source_array[@]}]="deb http://old-releases.ubuntu.com/ubuntu/ impish-security main restricted universe multiverse"
for source in "${source_array[@]}"
do
  echo $source
  cat /etc/apt/sources.list | grep "$source"
  if [[ $? -eq 1 ]]
  then
    sudo sed -i '$a'"${source}"'' /etc/apt/sources.list
  fi
done
sudo apt update 
sudo apt --allow-downgrades install -y wpasupplicant=2:2.9.0-21build1
sudo apt-mark hold wpasupplicant  
wpa_supplicant -v
# --allow-change-held-packages 
# https://beginor.github.io/2023/02/11/fix-ubuntu-2204-wifi-hotspot-connection-issue.html
